package com.example.onlineeducation.data.db.room

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.util.*

/**
 * Creator: yc
 * Date: 2021/2/22 10:21
 * UseDes:搜索记录表
 */
@Entity(tableName = "tab_search_history")
data class SearchHistoryTable(
    /**
     * 即是主键，也是显示时的顺序
     */
    @PrimaryKey(autoGenerate = true)
    @ColumnInfo(name = "search_history_index") val index: Int? = null,
    @ColumnInfo(name = "search_history_acount") val acount: String? = null,
    @ColumnInfo(name = "search_history_name") val name: String,


    ) {
    override fun toString(): String {
        return "SearchHistoryTable(id='$index', acount='$acount', name='$name')"
    }
}